package com.topscore.uke.mvp.contractors;

import android.widget.EditText;

import com.squareup.okhttp.RequestBody;
import com.topscore.uke.entities.UserInfo;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.BaseResponse;
import com.topscore.uke.network.request.LoginBean;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

/**
 * Created by 71468 on 2017/9/13.
 */

public interface LoginContractor {
    interface Presenter{
        void login();
    }
    interface LoginView extends BaseView{
        void onLoginSuccess();
        EditText getLoginEdt();
        EditText getPwdEdt();
        void onMemberUnBound();
        void setLoginClickable(boolean clickable);
    }

    interface Model {
        ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);
        void login(LoginBean request);
    }

    interface LoginListener extends BaseHttpListener{
        void onLoginSuccess(BaseResponse<UserInfo> response);
    }
}
